using System;
using System.Collections.Generic;
using System.Text;

namespace Eve.Data
{
    public class AssemblyLineStationCostLog : EveAssociation<Station, AssemblyLineType, DateTime>
    {
        private double usage;
        private double costPerHour;

        public Station Station
        {
            get { return From; }
        }
        public AssemblyLineType AssemblyLineType
        {
            get { return To; }
        }
        public DateTime DateTime
        {
            get { return Index; }
        }

        internal AssemblyLineStationCostLog(DbDataRow dr)
            : base(dr.Database, new Station(dr.Database, dr["stationID"]), new AssemblyLineType(dr.Database, dr["assemblyLineTypeID"]), dr["logDateTime"])
        {
            Fill(dr);
        }

        private void Fill(DbDataRow dr)
        {
            usage = dr["usage"];
            costPerHour = dr["costPerHour"];
        }
    }
}
